<template>
	<view class="dialog">
		<el-dialog :title="title" :visible.sync="dialogVisible" width="40%" :before-close="handleDialogClose">
			123
			
			<!-- <span slot="footer" class="dialog-footer">
				<el-button type="primary" @click="handleClose(true)" v-preventReClick>{{ getBtnTitle(title) }}</el-button>
				<el-button @click="handleClose(false)">取 消</el-button>
			</span> -->
		</el-dialog>
	</view>
</template>
<script>
	import {
		Request
	} from '../../model/request.js'
	import {
		Util
	} from '../../utils/util.js'
	// import {
	// 	config
	// } from "../../api/config.js";
	// import {
	// 	ServerUrl
	// } from "../../api/server_url.js";
	export default {
		props: {
			dialogVisible: '',
			second: '',
			title: '',
			item: {}
		},
		
		data() {
			return {
				
			}
		},
		
		watch: {
			dialogVisible(e) {
				if (e && this.title == '编辑') {
					this.form.name = this.item.activeData
				}
			}
		},
		
		methods: {
			// getBtnTitle(t) {
			// 	if (t == '新增奖品') {
			// 		return '确定'
			// 	} else {
			// 		return '更改'
			// 	}
			// },
			
			handleDialogClose(flag=false) {
				// this.$refs.form.clearValidate()
				this.$emit('closeDialog', flag)
			},
			
			handleClose(e) {
				this.handleDialogClose()
			}
		}
	}
</script>
<style scoped>
	.dialog {
		/* width: 100%;
	height: 100%; */
		position: absolute;
		left: 0;
		top: 0;
	}

	.el-form-item {
		position: relative;
	}

	.el-form-item::before {
		content: '*';
		position: absolute;
		left: 100px;
		top: 13px;
		color: red;
	}

	/deep/ .item .el-form-item__label {
		position: relative;
		left: -20px;
		/* color: red;
		border: solid 1px red;
		margin-left: 30px; */
	}

	/deep/ .item .el-form-item__label::before {
		content: ' ' !important;
	}

	.photo {
		width: 299px;
		height: 200px;
	}
	
	.code-content {
		text-align: center;
	}
</style>
